﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using nwrole.toolbox.sync.entity;
using BLToolkit.Data.DataProvider;
using nwrole.toolbox.sync;

namespace sync_test.action
{
    public class SaveSyncToDb
    {
       /* public static void Run(GhostTableSync sync)
        {
            List<SyncEntity> maps = CreateSyncMap.Run(sync);

            // maps = maps.Where(a => a.ShadowTableName == "").ToList();

            SyncEntityRepository dal = new SyncEntityRepository();
            dal.ConnectionString = sync.SourceConnectionString;
            dal.DataProvider = new OdpDataProvider();
            dal.DeleteAll();
            dal.Insert(maps);
        } */

    }
}
